package core;

import org.apache.commons.dbutils.*;
import org.junit.Test;
import util.DruidUtil;
import util.SendCodeUtil;

/**
 * 所有dao的父类
 */
public class BaseDao {

    /**
     * 构建转换器 => 数据库下划线转驼峰
     */
    protected BeanProcessor beanProcessor = new GenerousBeanProcessor();

    protected RowProcessor rowProcessor = new BasicRowProcessor(beanProcessor);

    /**
     * 数据库连接池
     */
    protected QueryRunner queryRunner = new QueryRunner(DruidUtil.getDataSource());

    protected String sql = "";


}
